package com.plian.system.entity.qg.evaluate;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author lwb
 * @create 2023-02-20
 * @description
 */
@Data
@TableName("qg_evaluate_evaluate_reform")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "EvaluateReform对象", description = "改革后评价")
public class EvaluateReform extends BaseEntity {

    @ApiModelProperty("单据编码")
    private String code;

    @ApiModelProperty("企业名称")
    private String enterpriseNameId;

    @ApiModelProperty("中介机构")
    private String intermediaryOrgan;

    @ApiModelProperty("开展进度(1.未开始2.进行中3.已完成)")
    private Integer progress;

    @ApiModelProperty(value = "填报人")
    @TableField(value = "report_person")
    private String reportPerson;

    @ApiModelProperty(value = "填报时间")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @TableField(value = "report_time")
    private Date reportTime;

    @ApiModelProperty(value = "单据类型")
    private String formType;

    @ApiModelProperty(value = "审批人")
    private String approvedUser;

    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvedTime;

    @ApiModelProperty(value = "审批意见")
    private String approvedOpinion;

    @ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
    private String dataSource;

    @ApiModelProperty(value = "数据来源id", required = true)
    private String dataSourceId;
}
